#ifndef MEM_POOL_H
#define MEM_POOL_H

#include <iostream>
#include <boost/pool/pool.hpp>
#include <boost/pool/object_pool.hpp>
#include <boost/pool/poolfwd.hpp>

#include "../../include/config.h"


namespace HappyDB
{
namespace Common
{

template <typename T>
class CMemPool : public boost::pool<>
{
public:
	size_type requested_size;

public:
    explicit CMemPool(size_type requested_size=sizeof(T), const size_type next_size = 32)
		:pool<>(requested_size, next_size)
    {

	}

    ~CMemPool()
	{
	}
};

}
}



#endif